//
//  CatalogueCollectionCell.m
//  A_Comic
//
//  Created by sos on 16/1/19.
//  Copyright © 2016年 sos. All rights reserved.
//

#import "CatalogueCollectionCell.h"

@implementation CatalogueCollectionCell
- (void)dealloc
{
    [_catalogueLabel release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.catalogueLabel = [[UILabel alloc]init];
//        self.catalogueLabel.backgroundColor = [UIColor grayColor];
//        self.catalogueLabel.alpha = 0.3;
        [self.contentView addSubview:self.catalogueLabel];
        [self.catalogueLabel release];
    }
    return self;
}

-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    
    
    self.catalogueLabel.frame = CGRectMake(0, 0, layoutAttributes.frame.size.width, layoutAttributes.frame.size.height);
    self.catalogueLabel.textAlignment = NSTextAlignmentCenter;
    
    
    
    
    
    
}






/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
